package org.grayrabbit.cms.entity;

// Generated 2011-5-16 13:39:30 by Hibernate Tools 3.3.0.GA

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**
 * CmsDictionaryType generated by hbm2java
 */
@Entity
@Table(name = "CMS_DICTIONARY_TYPE")
public class DictionaryType implements java.io.Serializable {

	private static final long serialVersionUID = 3689620676919751521L;
	private String dicTypeId;
	private String dicTypeCode;
	private String dicTypeName;
	private Boolean isModify;
	private Boolean isEnable;
	private String memo;
	private Set<Dictionary> dictionaries = new HashSet<Dictionary>(0);
	private List<Dictionary> dics = new ArrayList<Dictionary>(0);
	public DictionaryType() {
	}

	public DictionaryType(String dicTypeId) {
		this.dicTypeId = dicTypeId;
	}

	@Id
	@Column(name = "DIC_TYPE_ID", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator = "paymentableGenerator")       
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid") 
	public String getDicTypeId() {
		return this.dicTypeId;
	}

	public void setDicTypeId(String dicTypeId) {
		this.dicTypeId = dicTypeId;
	}

	@Column(name = "DIC_TYPE_CODE", length = 32)
	public String getDicTypeCode() {
		return this.dicTypeCode;
	}

	public void setDicTypeCode(String dicTypeCode) {
		this.dicTypeCode = dicTypeCode;
	}

	@Column(name = "DIC_TYPE_NAME", length = 64)
	public String getDicTypeName() {
		return this.dicTypeName;
	}

	public void setDicTypeName(String dicTypeName) {
		this.dicTypeName = dicTypeName;
	}

	@Column(name = "IS_MODIFY", precision = 1, scale = 0)
	public Boolean getIsModify() {
		return this.isModify;
	}

	public void setIsModify(Boolean isModify) {
		this.isModify = isModify;
	}

	@Column(name = "IS_ENABLE", precision = 1, scale = 0)
	public Boolean getIsEnable() {
		return this.isEnable;
	}

	public void setIsEnable(Boolean isEnable) {
		this.isEnable = isEnable;
	}

	@Column(name = "MEMO", length = 256)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "dictionaryType")
	public Set<Dictionary> getDictionaries() {
		return this.dictionaries;
	}

	public void setDictionaries(Set<Dictionary> dictionaries) {
		this.dictionaries = dictionaries;
	}
    @Transient
	public List<Dictionary> getDics() {
		return dics;
	}

	public void setDics(List<Dictionary> dics) {
		this.dics = dics;
	}

}
